import request from '@/utils/request'

// 查询嵌套题列表
export function listNesting(query) {
  return request({
    url: '/exam/nesting/list',
    method: 'get',
    params: query
  })
}

// 查询嵌套题详细
export function getNesting(nestId) {
  return request({
    url: '/exam/nesting/' + nestId,
    method: 'get'
  })
}

// 新增嵌套题
export function addNesting(data) {
  return request({
    url: '/exam/nesting',
    method: 'post',
    data: data
  })
}

// 修改嵌套题
export function updateNesting(data) {
  return request({
    url: '/exam/nesting',
    method: 'put',
    data: data
  })
}

// 删除嵌套题
export function delNesting(nestId) {
  return request({
    url: '/exam/nesting/' + nestId,
    method: 'delete'
  })
}

// 导出嵌套题
export function exportNesting(query) {
  return request({
    url: '/exam/nesting/export',
    method: 'get',
    params: query
  })
}